home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 43
/
Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso
/
Aminet
/
dev
/
c
/
GetCRC.readme
< prev
next >
Wrap
Text File
|
2001-05-03
|
4KB
|
102 lines
Short: V1.15 calculates different checksums
Author: stoecker@epost.de (Dirk Stoecker)
Uploader: stoecker@epost.de (Dirk Stoecker)
Version: 1.15
Type: dev/c
This program has 2 aims. First it allows to calculate different types
of checksums including CRC and much other types and thus allows to
identify a given checksum. Second its source code shows how to create
these checksums, so they can be used in own projects.
It is plain and portable ANSI-C code. The program is called like
"GetCRC <filename>" and prints the resulting checksums of this file.
Text modes aren't supported, but it always uses binary mode. The file
must fit completely in memory. These are no restrictions to the
algorithms, but are restrictions of using all of them in one program.
When choosing own algorithms, I suggest usage of "CRC-32 2", which
is one of the reliable standard algorithms.
In the output the lines with (M/I) always have two numbers, where
the first is Motorola byte ordering and the second Intel byte
ordering. The Word and Longword checksums can't be calculated, if the
file size isn't a multiple of 2 or 4. GetCRC calculates the checksum
of the largest part, which is such an multiple and prints the
additional bytes after the checksum. Depending on the checksum generator
such bytes are either ignored, added to the higher bytes or added to
the lower bytes of the result.
Here is the list of currently supported checksums. It also includes
a list, where these are used. Tell me other places, so I may update
this list. Send me new algorithms, source comments, better or different
calculation methods, ...
CRC-16 1 : PCompress2, Arc, DMS, ProPack, LhA, Zoo, Shrink
CRC-16 2 : CCITT, XModem, LU
CRC-16 3 : Donald Kindred's CRC
CRC-16 4 : old Zoom, CompDisk
CRC-32 1 : Olaf Barthel's CRC, PCompress, Zoom 5, LhPak
CRC-32 2 : Zip, GZip, LZX, RAR, Arj
CRC-32 3 : Brik (Binary mode), Ace
CRC-32 4 : GPatch
CRC-32 5 : BZip2
CRC-32 6 : BZip2 inverted
CHS-16 1 : PowerPacker Passwords
CHS-32 1M (WRAP) : Olaf Barthel's CRC, Bootblock of OFS/FFS
CHS-32 1I :
CHS-32 2 : LightFileSystem
EOR Byte :
EOR Word (M/I) :
EOR Long (M/I) : ByteKiller, RSI-Packer
Sum Byte Signed :
Sum Byte Unsigned : SQ
Sum Word Si (M/I) :
Sum Word Un (M/I) :
Sum Long M : Root-, Bitmap-, File-, Datablock of OFS/FFS
Sum Long I :
md5sum :
Use this tool as you want, but WITHOUT ANY WARRANTY!
Contact me at:
*********************************************************************
* snail-mail: * e-mail: *
* Dirk Stoecker * stoecker@epost.de *
* Geschwister-Scholl-Str. 10 * dirk@dstoecker.de *
* 01877 Bischofswerda * world wide web: *
* GERMANY * http://www.dstoecker.de/ *
* phone: * pgp key: *
* GERMANY +49 (0)3594/706666 * get from WWW pages or keyservers *
*********************************************************************
Following is my PGP signature for the corresponding LhA-File.
Use ' pgpv GetCRC.readme -o GetCRC.lha ' to check it.
Key fingerprint: B9 F2 3A 1A 29 02 75 16 6A C6 5B 7D 5E F6 16 CF.
All my releases after April 2001 have a PGP signature with this key.
Be alarmed if signature is missing or wrong.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: 1OVHPNH/G8JGQDj2wuaWt2wtc2kBBuYJ
iQCVAwUAOuMaz7OTsAT/iOY9AQGCogP/QdvZHxMiJk8znznA/UvBQoYheFLDu61T
AS9a8EqKRNT8cvDkNGhUqANzK1msR3E9rfM93MXl2+glgjPbqXK4islYA6TVhgAC
B1aFIJ4u7cCBaDQk17YKxEqy6FcKhQdls43dNjYZev4IIZ6C1eIdJ5FqjvOP7ntl
wHNgVkCHfPU=
=LB/R
-----END PGP SIGNATURE-----
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
17692 10148 42.6% 22-Apr-01 19:54:00 GetCRC
35001 11372 67.5% 22-Apr-01 19:54:00 GetCRC.c
3180 1430 55.0% 22-Apr-01 19:54:00 GetCRC.readme
-------- ------- ----- --------- --------
55873 22950 58.9% 25-Apr-101 21:37:08 3 files